package cn.appsys.service.deve;


import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import cn.appsys.dao.deve.AppVersionMapper;
import cn.appsys.pojo.AppInfo;
import cn.appsys.pojo.AppVersion;


//@Service是用来创建AppVersionServiceImpl类的bean实例对象
//当前其他类比如Controller中需要用到此依赖对象时，就是用@Service将此依赖对象进行注入
@Service("appVersionService")
public class AppVersionServiceImpl implements AppVersionService {
	@Resource
	private AppVersionMapper appVersionMapper;

	@Override
	public List<AppVersion> getAppVersionById(Integer id) {
		return appVersionMapper.getAppVersionById(id);
	}

	@Override
	public int insertAppVersion(AppVersion appVersion) {
		// TODO Auto-generated method stub
		return appVersionMapper.insertAppVersion(appVersion);
	}

	@Override
	public int addSave(AppInfo appInfo) {
		// TODO Auto-generated method stub
		return appVersionMapper.addSave(appInfo);
	}

	@Override
	public int updateLogoPathById(AppInfo appInfo) {
		// TODO Auto-generated method stub
		return appVersionMapper.updateLogoPathById(appInfo);
	}
}
